package com.lapelittle.rbac.service;

import com.lapelittle.rbac.mapper.UserMapper;
import com.lapelittle.rbac.model.entity.User;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Resource
    private UserMapper userMapper;

    public User getUserByUsername(String username) {
        return userMapper.findByUsernameWithRolesAndPermissions(username);
    }
}